﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NUnit.Framework;

namespace ebc.patterns.tests
{
    [TestFixture]
    public class test_MessageMultiplier
    {
        [Test]
        public void Double_a_message()
        {
            var sut = new MessageMultiplier<string>(2);

            string result = "";
            sut.OutputPins[0] = s => result += s.Length.ToString();
            sut.OutputPins[1] = s => result += s.ToUpper();

            sut.In_Multiply("Hello");

            Assert.AreEqual("5HELLO", result);
        }
    }
}
